package org.lq.shopping.common;

public class Const {
	
	public interface ConfigFile{
		String DBCP_FILE="dbcp.properties";
	}
	
	/**
	 * 角色
	 * @author linne
	 *
	 */
	public interface Role{
		int ROLE_CUSTOMER = 0;//普通用户
		int ROLE_ADMIN = 1;//管理员
	}
	
	/**
	 * 购物车用到的常量
	 * @author linne
	 *
	 */
	public interface Cart {
		
		int CHECKED = 1;//购物车被选中
		int UN_CHECKED = 0;//购物车w未选中状态
		
	}
	/**
	 * 订单
	 * @author linne
	 *
	 */
	public enum OrderStatusEnum{
		
		CANCELED(0,"取消"),
		NO_PAY(10,"未付款"),
		PAID(20,"以付款"),
		SHIPPE(40,"已发货"),
		ORDER_SUCCESS(50,"订单完成"),
		ORDER_CLOSE(60,"订单关闭")
		;
		
		OrderStatusEnum(int code,String value){
			
		}
		
		private int code;
		private String value;
		
		
	}
	
	

}
